package com.neusoft.neuiotms.dcom.repository.malfunction;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.malfunction.MalfunctionFrontlineProcessingForm;

public interface MalfunctionFrontlineProcessingFormRepository
        extends JpaRepository<MalfunctionFrontlineProcessingForm, Long> {

    MalfunctionFrontlineProcessingForm findByWorkNumAndTaskId(String workNum, String taskId);

    //    List<MalfunctionFrontlineProcessingForm> findByWorkNum(String workNum);

    MalfunctionFrontlineProcessingForm findTopByWorkNumOrderByIdDesc(String workNum);

}
